package com.example.springboot_sp.mapper;

import com.example.springboot_sp.entity.Calendar;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot_sp.entity.Collection;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 郭守军
 * @since 2022-09-16
 */
public interface CalendarMapper extends BaseMapper<Calendar> {
    @Select("select * from calendar where date = #{date}")
    List<Calendar> findAllByDate(@Param("date")  String date);
}
